package com.qdxwx.data.service.teacher;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.course.CourseQuery;
import com.qdxwx.models.teacher.Teacher;
import com.qdxwx.models.teacher.TeacherQuery;

import java.util.List;

/**
 * Teacher接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface TeacherService {

    int insert(Teacher teacher);

    int update(Teacher teacher);

    Teacher get(int tcId);

    Teacher getByUserId(long userId);

    Teacher getByMobile(String mobile);

    boolean checkMobile(String mobile);

    List<Teacher> getList(TeacherQuery query, PageRequest page);

    int count(TeacherQuery teacherQuery);

    List<Teacher> getListByCourseId(int courseId);

    List<Teacher> getListByBookId(int bookId);

    List<Teacher> getListByCourse(CourseQuery courseQuery, int limit);

    String getNamesByBookId(int bookId);

    String getNamesByCourseId(int bookId);

    int updateDisabled(Teacher teacher);

    int updateViewCount(int id);

    int updateLikeCount(int id);

    int delete(int tcId);

    int updateSort(int id, int sort);

    int updateCombine(long userId1, long userId2);
}